package com.credithc.signature.common.ro.manager;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class ChartRo {

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", locale = "zh")
    private Date start;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stop;

   /* public Date getStop() {
        if (stop ==null ){
            stop = new Date();
        }
        return stop;
    }

    public Date getStart(){
        if (start == null){
            Date date = getStop();
            Calendar calendar = Calendar.getInstance();
            calendar.setTime(date);
            calendar.add(Calendar.DATE, -7);
            start = calendar.getTime();
        }
        return start;
    }*/


}
